<!DOCTYPE html>
<html>
<head>
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="../css/reset.css">
	<link rel="stylesheet" type="text/css" href="../css/public.css">
	<style type="text/css" media="screen">
		#t1y2x1x0{
			float: left;
			width: 428px;
			height: 100%;
			overflow: hidden;
			box-sizing: border-box;
		}

		#t1y2x1x0y0{
			float: left;
			width: 100%;
			height: 298px;
			overflow: hidden;
			box-sizing: border-box;
		}
		#t1y2x1x0y1{
			float: left;
			width: 100%;
			height: 190px;
			overflow: hidden;
			box-sizing: border-box;
		}
		#t1y2x1x0y1 ul{
			width: 100%;
			height: 100%;
			overflow: hidden;
			box-sizing: border-box;
		}
		#t1y2x1x0y1 li{
			float: left;
			width: 214px;
			height: 100%;
			overflow: hidden;
			box-sizing: border-box;
		}

		#t1y2x1x1{
			float: left;
			width: 282px;
			height: 100%;
			overflow: hidden;
			box-sizing: border-box;
		}
		#t1y2x1x2{
			float: left;
			width: 490px;
			height: 100%;
			overflow: hidden;
			box-sizing: border-box;
		}
		#t1y2x1x2 ul{
			width: 100%;
			height: 100%;
			overflow: hidden;
			box-sizing: border-box;
		}
		#t1y2x1x2 li{
			float: left;
			width: 50%;
			height: 50%;
			overflow: hidden;
			box-sizing: border-box;
		}
	</style>
	<style>
	    /*上面*/
		#t2y2x1y0 {
			width: 100%;
			height: 288px;
		}
		/*上面 左侧*/
		#t2y2x1y0x0 {
            width: 468px;
			height: 288px;
			float: left;
		}
		/*上面 右侧*/
        #t2y2x1y0x1 {
        	width: 732px;
			height: 288px;
			float: left;
        }
        #t2y2x1y0x1 li {
        	width: 50%;
        	height: 288px;
        	float: left;
        }
        /*下面*/
		#t2y2x1y1 {
			width: 100%;
			height: 192px;
		}
		#t2y2x1y1 li {
			width: 20%;
			height: 192px;
			float: left;
		}
	</style>
	<style>
	    /*左侧*/
		#t3y2x1x0{
			width: 402px;
			height: 100%;
			float: left;
		}
		/*左侧 上*/
		#t3y2x1x0y0 {
			width: 402px;
			height: 326px;
			float: left;
		}
		/*左侧 下*/
		#t3y2x1x0y1 {
			width: 402px;
			height: 162px;
			float: left;
		}
		/*右侧*/
		#t3y2x1x1 {
			width: 798px;
			height: 100%;
			float: left;
		}
		/*右侧 左*/
		#t3y2x1x1x0 {
			width: 33.33%;
			height: 100%;
			float: left;
		}
		#t3y2x1x1x0y0 {
			width: 100%;
			height: 180px;
			float: left;
		}
		#t3y2x1x1x0y1 {
			width: 100%;
			height: 308px;
			float: left;
		}
		/*右侧 中*/
		#t3y2x1x1x1 {
			width: 33.33%;
			height: 100%;
			float: left;
		}
		#t3y2x1x1x1y0 {
			width: 100%;
			height: 308px;
			float: left;
		}
		#t3y2x1x1x1y1 {
			width: 100%;
			height: 180px;
			float: left;
		}
		/*右侧 右*/
		#t3y2x1x1x2 {
			width: 33.33%;
			height: 100%;
			float: left;
		}
		#t3y2x1x1x2y0 {
			width: 100%;
			height: 180px;
			float: left;
		}
		#t3y2x1x1x2y1 {
			width: 100%;
			height: 308px;
			float: left;
		}
	</style>
	<style>
		/*左侧*/
		#t4y2x1x0 {
			width: 402px;
			height: 100%;
			float: left;
		}
		/*左侧 上*/
		#t4y2x1x0y0 {
			width: 402px;
			height: 326px;
			float: left;
		}
		/*左侧 下*/
		#t4y2x1x0y1 {
			width: 402px;
			height: 162px;
			float: left;
		}
		/*右侧*/
		#t4y2x1x1 {
			width: 798px;
			height: 100%;
			float: left;
		}
		/*右侧 上*/
		#t4y2x1x1y0 {
			width: 798px;
			height: 158px;
			float: left;
		}
		/*右侧 上 左*/
		#t4y2x1x1y0x0 {
			width: 462px;
			height: 158px;
			float: left;
		}
		/*右侧 上 右*/
		#t4y2x1x1y0x1 {
			width: 336px;
			height: 158px;
			float: left;
		}
		/*右侧 下*/
		#t4y2x1x1y1 {
			width: 798px;
			height: 330px;
			float: left;
		}
		/*右侧 下 左*/
		#t4y2x1x1y1x0 {
           width: 536px;
           height: 330px;
           float: left;
		}
		#t4y2x1x1y1x0 ul {
			width: 100%;
			height: 100%;
			overflow: hidden;
		}
		#t4y2x1x1y1x0 li {
			width: 50%;
			height: 50%;
			float: left;
		} 
		/*右侧 下 右*/
		#t4y2x1x1y1x1 {
		   width: 262px;
           height: 330px;
           float: left;
		}
	</style>
</head>
<body>

<div class="box" id="p0">	
	<div class="bx-header">
		<div class="bx-header-left">
			<img src="../images/home/logo.png">
		</div>
		<div class="header_middle">

			<!-- <span src="">点播</span> -->

		</div>
		<div class="bx-header-right">
			<div class="header-right-left" id="appCollect" tabindex="-1">
				
			</div>
			<div  class="header-right-right">
				<div class="bx-time" id="bx_time">
					
				</div>
			</div>
		</div>
	</div>
	<div class="bx-nav" id="nav1y1">
		<ul id="nav1y1ul">
			<li tabindex="-1" class="heightLine">首页</li>
			<li tabindex="-1">直播</li>
			<li tabindex="-1">点播</li>
			<li tabindex="-1">回看</li>
		</ul>
	</div>
	<div class="bx-con">
		<div id="t1">
			<div class="bx-content" id="t1y2">
				<div class="left_arrow" id="t1y2x0">
					<img src="../images/home/xiangzuo.png">
				</div>
				<div class="list-content" id="t1y2x1">

					<div id="t1y2x1x0">
						<div class="ver_box_style"  id="t1y2x1x0y0" tabindex="-1">
							<img src="../images/home/tu_1.png">
							<p class="style1-con-des">公牛vs雷霆 75:84 直播中</p>
						</div>
						<div id="t1y2x1x0y1">
							<ul id="t1y2x1x0y1ul">
								<li class="ver_box_style" tabindex="-1">
									<img src="../images/home/tu_2.png">
									<p class="style1-con-des">钓鱼比赛合集</p>
								</li>
								<li class="ver_box_style" tabindex="-1">
									<img src="../images/home/tu_3.png">
									<p class="style1-con-des">钓鱼比赛合集</p>
								</li>
							</ul>
						</div>
					</div>

					<div class="ver_box_style" id="t1y2x1x1" tabindex="-1">
						<img src="../images/home/tu_4.png">
						<p class="style1-con-des">2016欧洲杯赛事回顾</p>
					</div>
					<div id="t1y2x1x2">
						<ul id="t1y2x1x2ul">
							<li class="ver_box_style" tabindex="-1">
								<img src="../images/home/tu_5.png">
								<p>2017男子世界循环赛</p>
							</li>
							<li class="ver_box_style" tabindex="-1">
								<img src="../images/home/tu_6.png">
								<p>2017NBA总决赛</p>
							</li>
							<li class="ver_box_style" tabindex="-1">
								<img src="../images/home/tu_7.png"">
								<p class="style1-con-des">2017世界羽联黄金赛</p>
							</li>
							<li class="ver_box_style" tabindex="-1">
								<img src="../images/home/tu_8.png">
								<p class="style1-con-des">2017世界汽摩黄金赛</p>
							</li>
						</ul>
					</div>
					
				</div>
				<div class="right_arrow" id="t1y2x2">
					<img src="../images/home/xiangyou.png">
				</div>
			</div>
			<div class="home_footer" id="t1y3">
				<p>[ <span style="color:#FF1413">超值福利</span> ] 新版系统即将升级，升级期间所有回看免费开放</p>
				<img src="../images/home/tuichu.png">
			</div>
		</div>
		<div id="t2" style="display: none">
			<div class="bx-content1" id="t2y2">
				<div class="left_arrow" id="t2y2x0">
					<img src="../images/home/xiangzuo.png">
				</div>
				<div class="content" id="t2y2x1">
					<div id="t2y2x1y0">
						<div  class="ver_box_style" id="t2y2x1y0x0" tabindex="-1">
							<img src="../images/live/tu_1.png">
							<p class="style1-con-des">雷霆vs热火 直播中</p>
						</div>
						<div id="t2y2x1y0x1">
							<ul id="t2y2x1y0x1ul">
								<li class="pos_box_style" tabindex="-1">
									<img src="../images/live/tu_2.png">
									<!-- <p class="style1-con-des">篮球</p> -->
								</li>
								<li class="pos_box_style" tabindex="-1">
									<img src="../images/live/tu_3.png">
									<p class="style1-con-des">乒羽</p>
								</li>
							</ul>
						</div>
						
					</div>
					<div id="t2y2x1y1">
						<ul id="t2y2x1y1ul">
							<li class="pos_box_style" tabindex="-1">
								<img src="../images/live/tu_4.png">
								<!-- <p>高尔夫</p> -->
							</li>
							<li class="pos_box_style" tabindex="-1">
								<img src="../images/live/tu_5.png">
								<p>足球</p>
							</li>
							<li class="pos_box_style" tabindex="-1">
								<img src="../images/live/tu_6.png" >
								<!-- <p class="style1-con-des">汽摩</p> -->
							</li>
							<li class="pos_box_style" tabindex="-1">
								<img src="../images/live/tu_7.png">
								<p class="style1-con-des">电子竞技</p>
							</li>
							<li class="pos_box_style" tabindex="-1">
								<img src="../images/live/tu_8.png">
								<!-- <p class="style1-con-des">垂钓</p> -->
							</li>
						</ul>
					</div>
					
				</div>
				<div class="right_arrow" id="t2y2x2">
					<img src="../images/home/xiangyou.png">
				</div>
			</div>
			<div class="bx-footer" id="t2y3">
				<img src="../images/home/return.png"> 
			</div>
		</div>
		<div id="t3" style="display: none">
			<div class="bx-content1" id="t3y2">
				<div class="left_arrow" id="t3y2x0">
					<img src="../images/home/xiangzuo.png">
				</div>
				<div class="content" id="t3y2x1">

					<div id="t3y2x1x0">

						<div class="ver_box_style" id="t3y2x1x0y0" tabindex="-1">
							<img src="../images/lookBack/tu_1.png">
							<p>03月20号 火箭vs雷霆</p>
						</div>

						<div class="pos_box_style" id="t3y2x1x0y1" tabindex="-1">
							<img src="../images/lookBack/tu_5.png">
							<p>足球</p>
						</div>
						
					</div>

					<div id="t3y2x1x1">
						<div id="t3y2x1x1x0">
							<div id="t3y2x1x1x0y0" class="pos_box_style" tabindex="-1">
								<img src="../images/lookBack/tu_2.png" width="229" height="197">
								<p>篮球</p>
							</div>
							<div id="t3y2x1x1x0y1" class="pos_box_style" tabindex="-1">
								<img src="../images/lookBack/tu_6.png" width="229" height="197">
								<p>汽摩</p>
							</div>
						</div>
						<div id="t3y2x1x1x1">
							<div id="t3y2x1x1x1y0" class="pos_box_style" tabindex="-1">
								<img src="../images/lookBack/tu_3.png" width="229" height="197">
								<p>高尔夫</p>
							</div>
							<div id="t3y2x1x1x1y1" class="pos_box_style" tabindex="-1">
								<img src="../images/lookBack/tu_7.png" width="229" height="197">
								<p>电子竞技</p>
							</div>
						</div>
						<div id="t3y2x1x1x2">
							<div id="t3y2x1x1x2y0" class="pos_box_style" tabindex="-1">
								<img src="../images/lookBack/tu_4.png">
								<p>乒羽</p>
							</div>
							<div id="t3y2x1x1x2y1" class="pos_box_style" tabindex="-1">
								<img src="../images/lookBack/tu_8.png">
								<p>垂钓</p>
							</div>
						</div>
					</div>
				</div>
				<div class="right_arrow" id="t3y2x2">
					<img src="../images/home/xiangyou.png">
				</div>
			</div>
			<div class="bx-footer" id="t3y3">
				<img src="../images/home/return.png">
			</div>
		</div>
		<div id="t4" style="display: none">
			
			<div class="bx-content1" id="t4y2">
				<div class="left_arrow" id="t4y2x0">
					<img src="../images/home/xiangzuo.png">
				</div>
				<div class="content" id="t4y2x1">

					<div id="t4y2x1x0">

						<div class="ver_box_style" id="t4y2x1x0y0" tabindex="-1">
							<img src="../images/onDemand/tu_1.png">
							<p>篮球公园第58期</p>
						</div>

						<div class="pos_box_style" id="t4y2x1x0y1" tabindex="-1">
							<img src="../images/onDemand/tu_6.png">
							<p>2016世界杯专题</p>
						</div>
						
					</div>

					<div id="t4y2x1x1">
						<div id="t4y2x1x1y0">
							<div id="t4y2x1x1y0x0" class="pos_box_style" tabindex="-1">
								<img src="../images/onDemand/tu_2.png" width="229" height="197">
								<p>篮球</p>
							</div>
							<div id="t4y2x1x1y0x1" class="pos_box_style" tabindex="-1">
								<img src="../images/onDemand/tu_3.png" width="229" height="197">
								<p>乒羽</p>
							</div>
						</div>
						<div id="t4y2x1x1y1">
							<div id="t4y2x1x1y1x0">
								<ul id="t4y2x1x1y1x0ul">
									<li class="pos_box_style" tabindex="-1">
										<img src="../images/onDemand/tu_4.png" width="229" height="197">
										<p>足球</p>
									</li>
									<li class="pos_box_style" tabindex="-1">
										<img src="../images/onDemand/tu_5.png" width="229" height="197">
										<p>高尔夫</p>
									</li>
									<li class="pos_box_style" tabindex="-1">
										<img src="../images/onDemand/tu_7.png" width="229" height="197">
										<p>汽摩</p>
									</li>
									<li class="pos_box_style" tabindex="-1">
										<img src="../images/onDemand/tu_8.png" width="229" height="197">
										<p>电子竞技</p>
									</li>
								</ul>
							</div>
							<div id="t4y2x1x1y1x1" class="pos_box_style" tabindex="-1">
								<img src="../images/onDemand/tu_9.png" width="229" height="197">
								<p>垂钓</p>
							</div>
						</div>
						
					</div>
					
				</div>
				<div class="right_arrow" id="t4y2x2">
					<img src="../images/home/xiangyou.png">
				</div>
			</div>
			<div class="bx-footer" id="t4y3">
				<img src="../images/home/return.png">
			</div>
		</div>
	</div>


	<div class="bx-dialog" style="display: none" id="detentionDialog">
		<div class="bx-dialog-box">
			<div class="detention-box-top">
				<span>确认退出当前页面？</span>
			</div>
			<div class="detention-box-button">
				<span id="detentionDialogLeft" tabindex="-1">我 点 错 了</span>
				<span id="detentionDialogRight" tabindex="-1">确 认 退 出</span>
			</div>
		</div>
	</div>
</div>
<script src="../js/jquery.min.js"></script>
<script src="../js/public.js"></script>
<script>
	var homeGlobalData = {};

	homeGlobalData.currentPage = $.getUrlParam('currentPage')?$.getUrlParam('currentPage'):"t1";
	homeGlobalData.url = "http://www.go3c.tv:8030/backend/mobileott/api/php/php_recommvideo.php";
	homeGlobalData.homeData = {};

    $.get(homeGlobalData.url,function(data){

    	homeGlobalData.homeData = data;

    	console.log(data)

    	var homeData0 = data[1].recommendedVideos;
    	var homeData9 = data[6].recommendedVideos;
    	var homeData5 = data[8].recommendedVideos;
    	var homeData1 = data[25].recommendedVideos;
    	
		var str1 = "<div class='bx-content' id='t1y2'>\
			<div class='left_arrow' id='t1y2x0'>\
				<img src='../images/home/xiangzuo.png'>\
			</div>\
			<div class='list-content' id='t1y2x1'>\
				<div id='t1y2x1x0'>\
					<div class='ver_box_style'  id='t1y2x1x0y0' tabindex='-1' onclick='MtaH5.clickStat('recommend_click')'>\
						<img src='"+homeData0[0].imageURL+"'>\
						<p class='style1-con-des'>"+homeData0[0].title+"</p>\
					</div>\
					<div id='t1y2x1x0y1'>\
						<ul id='t1y2x1x0y1ul'>\
							<li class='ver_box_style' tabindex='-1'>\
								<img src='"+homeData0[1].imageURL+"'>\
								<p class='style1-con-des'>"+homeData0[1].title+"</p>\
							</li>\
							<li class='ver_box_style' tabindex='-1'>\
								<img src='"+homeData0[2].imageURL+"'>\
								<p class='style1-con-des'>"+homeData0[2].title+"</p>\
							</li>\
						</ul>\
					</div>\
				</div>\
				<div class='ver_box_style' id='t1y2x1x1' tabindex='-1'>\
					<img src='"+homeData0[3].imageURL+"'>\
					<p class='style1-con-des'>"+homeData0[3].title+"</p>\
				</div>\
				<div id='t1y2x1x2'>\
					<ul id='t1y2x1x2ul'>\
						<li class='ver_box_style' tabindex='-1'>\
							<img src='"+homeData0[4].imageURL+"'>\
							<p>"+homeData0[4].title+"</p>\
						</li>\
						<li class='ver_box_style' tabindex='-1'>\
							<img src='"+homeData0[5].imageURL+"'>\
							<p>"+homeData0[5].title+"</p>\
						</li>\
						<li class='ver_box_style' tabindex='-1'>\
							<img src='"+homeData0[6].imageURL+"'>\
							<p class='style1-con-des'>"+homeData0[6].title+"</p>\
						</li>\
						<li class='ver_box_style' tabindex='-1'>\
							<img src='"+homeData0[7].imageURL+"'>\
							<p class='style1-con-des'>"+homeData0[7].title+"</p>\
						</li>\
					</ul>\
				</div>\
				\
			</div>\
			<div class='right_arrow' id='t1y2x2'>\
				<img src='../images/home/xiangyou.png'>\
			</div>\
		</div>\
		<div class='home_footer' id='t1y3'>\
			<p>[ <span style='color:#FF1413'>超值福利</span> ] 新版系统即将升级，\
			升级期间所有回看免费开放</p>\
			<img src='../images/home/tuichu.png'>\
		</div>";

    	var str2 = "<div class='bx-content1' id='t2y2'>\
				<div class='left_arrow' id='t2y2x0'>\
					<img src='../images/home/xiangzuo.png'>\
				</div>\
				<div class='content' id='t2y2x1'>\
					<div id='t2y2x1y0'>\
						<div  class='ver_box_style' id='t2y2x1y0x0' tabindex='-1'  onclick='MtaH5.clickStat('recommend_click')'>\
							<img src='"+homeData9[0].imageURL+"'>\
							<p class='style1-con-des'>"+homeData9[0].title+"</p>\
						</div>\
						<div id='t2y2x1y0x1'>\
							<ul id='t2y2x1y0x1ul'>\
								<li class='pos_box_style' tabindex='-1'>\
									<img src='"+homeData9[1].imageURL+"'>\
									<p class='style1-con-des'>"+homeData9[1].title+"</p>\
								</li>\
								<li class='pos_box_style' tabindex='-1'>\
									<img src='"+homeData9[2].imageURL+"'>\
									<p class='style1-con-des'>"+homeData9[2].title+"</p>\
								</li>\
							</ul>\
						</div>\
					</div>\
					<div id='t2y2x1y1'>\
						<ul id='t2y2x1y1ul'>\
							<li class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData9[3].imageURL+"'>\
								<p>"+homeData9[3].title+"</p>\
							</li>\
							<li class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData9[4].imageURL+"'>\
								<p>"+homeData9[4].title+"</p>\
							</li>\
							<li class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData9[5].imageURL+"' >\
								<p class='style1-con-des'>"+homeData9[5].title+"</p>\
							</li>\
							<li class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData9[6].imageURL+"'>\
								<p class='style1-con-des'>"+homeData9[6].title+"</p>\
							</li>\
							<li class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData9[7].imageURL+"'>\
								<p class='style1-con-des'>"+homeData9[7].title+"</p>\
							</li>\
						</ul>\
					</div>\
				</div>\
				<div class='right_arrow' id='t2y2x2'>\
					<img src='../images/home/xiangyou.png'>\
				</div>\
			</div>\
			<div class='bx-footer' id='t2y3'>\
				<img src='../images/home/return.png'> \
			</div>"

		var str3 = "<div class='bx-content1' id='t3y2'>\
				<div class='left_arrow' id='t3y2x0'>\
					<img src='../images/home/xiangzuo.png'>\
				</div>\
				<div class='content' id='t3y2x1'>\
					<div id='t3y2x1x0'>\
						<div class='ver_box_style' id='t3y2x1x0y0' tabindex='-1' onclick='MtaH5.clickStat('recommend_click')'>\
							<img src='"+homeData5[0].imageURL+"'>\
							<p>"+homeData5[0].title+"</p>\
						</div>\
						<div class='pos_box_style' id='t3y2x1x0y1' tabindex='-1'>\
							<img src='"+homeData5[1].imageURL+"'>\
							<p>"+homeData5[1].title+"</p>\
						</div>\
					</div>\
					<div id='t3y2x1x1'>\
						<div id='t3y2x1x1x0'>\
							<div id='t3y2x1x1x0y0' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData5[2].imageURL+"'>\
								<p>"+homeData5[2].title+"</p>\
							</div>\
							<div id='t3y2x1x1x0y1' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData5[3].imageURL+"'>\
								<p>"+homeData5[3].title+"</p>\
							</div>\
						</div>\
						<div id='t3y2x1x1x1'>\
							<div id='t3y2x1x1x1y0' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData5[4].imageURL+"'>\
								<p>"+homeData5[4].title+"</p>\
							</div>\
							<div id='t3y2x1x1x1y1' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData5[5].imageURL+"'>\
								<p>"+homeData5[5].title+"</p>\
							</div>\
						</div>\
						<div id='t3y2x1x1x2'>\
							<div id='t3y2x1x1x2y0' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData5[6].imageURL+"'>\
								<p>"+homeData5[6].title+"</p>\
							</div>\
							<div id='t3y2x1x1x2y1' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData5[7].imageURL+"'>\
								<p>"+homeData5[7].title+"</p>\
							</div>\
						</div>\
					</div>\
				</div>\
				<div class='right_arrow' id='t3y2x2'>\
					<img src='../images/home/xiangyou.png'>\
				</div>\
			</div>\
			<div class='bx-footer' id='t3y3'>\
				<img src='../images/home/return.png'>\
			</div>";

		var str4 = "<div class='bx-content1' id='t4y2'>\
				<div class='left_arrow' id='t4y2x0'>\
					<img src='../images/home/xiangzuo.png'>\
				</div>\
				<div class='content' id='t4y2x1'>\
					<div id='t4y2x1x0'>\
						<div class='ver_box_style' id='t4y2x1x0y0' tabindex='-1' onclick='MtaH5.clickStat('recommend_click')'>\
							<img src='"+homeData1[0].imageURL+"'>\
							<p>"+homeData1[0].title+"</p>\
						</div>\
						<div class='pos_box_style' id='t4y2x1x0y1' tabindex='-1'>\
							<img src='"+homeData1[1].imageURL+"'>\
							<p>"+homeData1[1].title+"</p>\
						</div>\
						\
					</div>\
					<div id='t4y2x1x1'>\
						<div id='t4y2x1x1y0'>\
							<div id='t4y2x1x1y0x0' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData1[2].imageURL+"'>\
								<p>"+homeData1[2].title+"</p>\
							</div>\
							<div id='t4y2x1x1y0x1' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData1[3].imageURL+"'>\
								<p>"+homeData1[3].title+"</p>\
							</div>\
						</div>\
						<div id='t4y2x1x1y1'>\
							<div id='t4y2x1x1y1x0'>\
								<ul id='t4y2x1x1y1x0ul'>\
									<li class='pos_box_style' tabindex='-1'>\
										<img src='"+homeData1[4].imageURL+"'>\
										<p>"+homeData1[4].title+"</p>\
									</li>\
									<li class='pos_box_style' tabindex='-1'>\
										<img src='"+homeData1[5].imageURL+"'>\
										<p>"+homeData1[5].title+"</p>\
									</li>\
									<li class='pos_box_style' tabindex='-1'>\
										<img src='"+homeData1[6].imageURL+"'>\
										<p>"+homeData1[6].title+"</p>\
									</li>\
									<li class='pos_box_style' tabindex='-1'>\
										<img src='"+homeData1[7].imageURL+"'>\
										<p>"+homeData1[7].title+"</p>\
									</li>\
								</ul>\
							</div>\
							<div id='t4y2x1x1y1x1' class='pos_box_style' tabindex='-1'>\
								<img src='"+homeData1[8].imageURL+"'>\
								<p>"+homeData1[8].title+"</p>\
							</div>\
						</div>\
					</div>\
				</div>\
				<div class='right_arrow' id='t4y2x2'>\
					<img src='../images/home/xiangyou.png'>\
				</div>\
			</div>\
			<div class='bx-footer' id='t4y3'>\
				<img src='../images/home/return.png'>\
			</div>";

		/*$("#t1").html(str1);
		$("#t2").html(str2);
		$("#t3").html(str3);
		$("#t4").html(str4);*/

		switch(homeGlobalData.currentPage){
			case "t1":
				goToThePage(homeGlobalData.currentPage,"t1y2x1x0y0")
				break;
			case "t2":
				goToThePage(homeGlobalData.currentPage,"t2y2x1y0x0")
				break;
			case "t3":
				goToThePage(homeGlobalData.currentPage,"t3y2x1x0y0")
				break;
			case "t4":
				goToThePage(homeGlobalData.currentPage,"t4y2x1x0y0")
				break;
		}
    },"json")
</script>
<script>

	

	/*	switch(homeGlobalData.currentPage){
		case "t1":
			goToThePage(homeGlobalData.currentPage,"t1y2x1x0y0")
			break;
		case "t4":
			goToThePage(homeGlobalData.currentPage,"t4y2x1x0y0")
			break;
		case "t3":
			goToThePage(homeGlobalData.currentPage,"t3y2x1x0y0")
			break;
		case "t2":
			goToThePage(homeGlobalData.currentPage,"t2y2x1y0x0")
			break;
	}*/
	/*收藏按钮事件*/
	function appCollect(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "down":
						var index = getNavIndex(homeGlobalData.currentPage)
						setFocus("nav1y1ul",index);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				window.location.href = hdLocation+"collect.html?prePage=home&pageNum="+homeGlobalData.currentPage;
				break;
		}
	}
	/*退出事件*/

	var currentDom;

	var isOnEnd = false;

	function onEnd(dom){
		if(isOnEnd) return;
		isOnEnd = true;
		$("#detentionDialog").show();
		setFocus("detentionDialogLeft");
		currentDom = dom;
	}

	/*挽留页左按钮事件*/
	function detentionDialogLeft(event,dom,dir){
		
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "left":
						setFocus("detentionDialogRight");
						break;
					case "right":
						setFocus("detentionDialogRight");
						break;
				}
				break;
			case "Back":
				$("#detentionDialog").hide();
				currentDom.focus();
				isOnEnd = false;
				break;
			case "Click":
				$("#detentionDialog").hide();
				currentDom.focus();
				isOnEnd = false;
				break;
		}
		
	}
	/*挽留页右按钮事件*/
	function detentionDialogRight(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "left":
						setFocus("detentionDialogLeft");
						break;
					case "right":
						setFocus("detentionDialogLeft");
						break;
				}
				break;
			case "Back":
				$("#detentionDialog").hide();
				currentDom.focus();
				isOnEnd = false;
				break;
			case "Click":
				
				break;
		}
		
	}
	//Y1 焦点事件 
	function nav1y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("appCollect");
						break;
					case "down":
						switch(homeGlobalData.currentPage){
							case "t1":
								setFocus("t1y2x1x0y0");
								break;
							case "t2":
								setFocus("t2y2x1y0x0");
								break;
							case "t3":
								setFocus("t3y2x1x0y0");
								break;
							case "t4":
								setFocus("t4y2x1x0y0");
								break;
						}
						break;
					case "left":
						break;
					case "right":
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
		
	}
	function nav1y1ul(event,dom,dir){
		switch(event){
			case "MoveFocus":
				if(ulIsBorder(dom,dir,4,4,true)){
					onSelect(event,dom.parent().parent(),dir);
				}
				break;
			case "Back":
				break;
			case "Click":
				var index = dom.index();
				switch(index){
					case 0:
						goToThePage("t1","nav1y1ul",index)
						break;
					case 1:
						goToThePage("t2","nav1y1ul",index)
						break;
					case 2:
						goToThePage("t3","nav1y1ul",index)
						break;
					case 3:
						goToThePage("t4","nav1y1ul",index)
						break;
				}
				break;
		}
	}
	//Y2 焦点事件 
	function t1y2(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						var index = getNavIndex(homeGlobalData.currentPage)
						setFocus("nav1y1ul",index);
						break;
					case "down":
						console.log("y2不进行任何操作")
						break;
					case "left":
						goToThePage("t4","t4y2x1x1y0x1")
						break;
					case "right":
						goToThePage("t2","t2y2x1y0x0")
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}

	function t1y2x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	
	function t1y2x1x0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						setFocus("t1y2x1x1");
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}

	//首页 推荐位 4
	function t1y2x1x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t1y2x1x0y0");
						break;
					case "right":
						setFocus("t1y2x1x2ul");
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				window.location.href = hdLocation+"onDemandDetail.html";
				break;
		}
	}
	
	function t1y2x1x2(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t1y2x1x1");
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
		
	}
	//首页 推荐位 5 6 7 8
	function t1y2x1x2ul(event,dom,dir){
		switch(event){
			case "MoveFocus":
				if(ulIsBorder(dom,dir,2,4)){
					onSelect(event,dom.parent().parent(),dir);
				}
				break;
			case "Back":
				break;
			case "Click":
				window.location.href = hdLocation+"onDemandDetail.html";
				break;
		}
	}
	
	//首页 推荐位 1 
	function t1y2x1x0y0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						setFocus("t1y2x1x0y1ul");
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				window.location.href = hdLocation+"play.html";
				break;
		}	
	}

	function t1y2x1x0y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("t1y2x1x0y0");
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}

	//首页 推荐位 2 3 
	function t1y2x1x0y1ul(event,dom,dir){
		switch(event){
			case "MoveFocus":
				if(ulIsBorder(dom,dir,2,2)){
					onSelect(event,dom.parent().parent(),dir);
				}
				break;
			case "Back":
				break;
			case "Click":
				window.location.href = hdLocation+"onDemandDetail.html";
				break;
		}
	}
</script>
<script>
	//Y2 焦点事件
	function t2y2(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						var index = getNavIndex(homeGlobalData.currentPage)
						setFocus("nav1y1ul",index);
						break;
					case "down":
						console.log("y2不进行任何操作")
						break;
					case "left":
						goToThePage("t1","t1y2x1x2ul",1)
						break;
					case "right":
						goToThePage("t3","t3y2x1x0y0")
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}

	function t2y2x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
		
	}
	function t2y2x1y0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						setFocus("t2y2x1y1ul");
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
		
	}
	
	function t2y2x1y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":

						setFocus("t2y2x1y0x0");
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	//点播 推荐位 1 
	function t2y2x1y0x0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						setFocus("t2y2x1y0x1ul");
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"play.html";
				break;
		}
	}

	function t2y2x1y0x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t2y2x1y0x0");
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	//点播 推荐位 2 3
	function t2y2x1y0x1ul(event,dom,dir){
		switch(event){
			case "MoveFocus":
				if(ulIsBorder(dom,dir,2,2)){

					switch(dir){
						case "up":
							onSelect(event,dom.parent().parent(),dir);
							break;
						case "down":
							
							var index = dom.index();

							if(index == 0){
								setFocus("t2y2x1y1ul",2);
							}else{
								setFocus("t2y2x1y1ul",4);
							}
							break;
						case "left":
							onSelect(event,dom.parent().parent(),dir);
							break;
						case "right":
							onSelect(event,dom.parent().parent(),dir);
							break;
					}
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"live1.html";
				break;
		}

	}
	//点播 推荐位 4 5 6 7 8
	function t2y2x1y1ul(event,dom,dir){
		switch(event){
			case "MoveFocus":
				if(ulIsBorder(dom,dir,5,5)){
					switch(dir){
						case "up":
							var index = dom.index();
							console.log(index);

							if(index == 2){

								setFocus("t2y2x1y0x1ul",0);

							}else if(index == 3 || index == 4){

								setFocus("t2y2x1y0x1ul",1);

							}else{

								onSelect(event,dom.parent().parent(),dir);

							}
							break;
						case "down":
							
							onSelect(event,dom.parent().parent(),dir);

							break;
						case "left":
							onSelect(event,dom.parent().parent(),dir);
							break;
						case "right":
							onSelect(event,dom.parent().parent(),dir);
							break;
					}
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"live1.html";
				break;
		}
	}
</script>
<script>
	//Y2 焦点事件
	function t3y2(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						var index = getNavIndex(homeGlobalData.currentPage)
						setFocus("nav1y1ul",index);
						break;
					case "down":
						console.log("y2不进行任何操作")
						break;
					case "left":
						goToThePage("t2","t2y2x1y0x1ul",1)
						break;
					case "right":
						goToThePage("t4","t4y2x1x0y0")
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}

	function t3y2x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	
	function t3y2x1x0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":

				break;
		}
	}

	function t3y2x1x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	//点播 推荐位 1
	function t3y2x1x0y0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						setFocus("t3y2x1x0y1");
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						setFocus("t3y2x1x1x0y0");
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"play.html";
				break;
		}
	}
	
	//点播 推荐位 2
	function t3y2x1x0y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("t3y2x1x0y0");
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						setFocus("t3y2x1x1x0y1");
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"lookBack1.html";
				break;
		}

	}
	
	function t3y2x1x1x0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}

	}
	function t3y2x1x1x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}

	}
	function t3y2x1x1x2(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}

	}
	//点播 推荐位 3
	function t3y2x1x1x0y0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						setFocus("t3y2x1x1x0y1");
						break;
					case "left":
						setFocus("t3y2x1x0y0");
						break;
					case "right":
						setFocus("t3y2x1x1x1y0");
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"lookBack1.html";
				break;
		}
	}
	//点播 推荐位 4
	function t3y2x1x1x0y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("t3y2x1x1x0y0");
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t3y2x1x0y1");
						break;
					case "right":
						setFocus("t3y2x1x1x1y1");
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"lookBack1.html";
				break;
		}
	}
	//点播 推荐位 5
	function t3y2x1x1x1y0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						setFocus("t3y2x1x1x1y1");
						break;
					case "left":
						setFocus("t3y2x1x1x0y0");
						break;
					case "right":
						setFocus("t3y2x1x1x2y0");
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"lookBack1.html";
				break;
		}
	}
	//点播 推荐位 6
	function t3y2x1x1x1y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("t3y2x1x1x1y0");
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t3y2x1x1x0y1");
						break;
					case "right":
						setFocus("t3y2x1x1x2y1");
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"lookBack1.html";
				break;
		}
	}
	//点播 推荐位 7
	function t3y2x1x1x2y0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						setFocus("t3y2x1x1x2y1");
						break;
					case "left":
						setFocus("t3y2x1x1x1y0");
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"lookBack1.html";
				break;
		}
	}
	//点播 推荐位 8
	function t3y2x1x1x2y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("t3y2x1x1x2y0");
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t3y2x1x1x1y1");
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"lookBack1.html";
				break;
		}
	}
</script>
<script>
	//Y2 焦点事件
	function t4y2(event,dom,dir){
		switch(event){
			case "MoveFocus":			
				switch(dir){
					case "up":
						var index = getNavIndex(homeGlobalData.currentPage)
						setFocus("nav1y1ul",index);
						break;
					case "down":
						console.log("y2不进行任何操作")
						break;
					case "left":
						goToThePage("t3","t3y2x1x1x2y0")
						break;
					case "right":
						goToThePage("t1","t1y2x1x0y0")
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}

	function t4y2x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	
	function t4y2x1x0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						setFocus("t4y2x1x1y0x0");
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				
				break;
		}
	}
	
	function t4y2x1x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t4y2x1x0y0");
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	
	//回看 推荐位 1
	function t4y2x1x0y0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						
						setFocus("t4y2x1x0y1");
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"play.html";
				break;
		}
	}
	//回看 推荐位 2
	function t4y2x1x0y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("t4y2x1x0y0");
						break;
					case "down":	
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						setFocus("t4y2x1x1y1x0ul",2);
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"onDemandDetail.html";
				break;
		}
	}
	
	function t4y2x1x1y0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						setFocus("t4y2x1x1y1x0ul");
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	
	function t4y2x1x1y1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("t4y2x1x1y0x0");
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t4y2x1x0y0");
						break;
					case "right":

						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	//回看 推荐位 3
	function t4y2x1x1y0x0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						setFocus("t4y2x1x1y0x1");
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"onDemand1.html";
				break;
		}

	}
	//回看 推荐位 4
	function t4y2x1x1y0x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						setFocus("t4y2x1x1y1x1");
						break;
					case "left":
						setFocus("t4y2x1x1y0x0");
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"onDemand1.html";
				break;
		}
		
	}
	function t4y2x1x1y1x0(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						onSelect(event,dom.parent(),dir);
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						onSelect(event,dom.parent(),dir);
						break;
					case "right":
						setFocus("t4y2x1x1y1x1");
						break;
				}
				break;
			case "Back":
				break;
			case "Click":
				break;
		}
	}
	//回看 推荐位 5 6 7 8
	function t4y2x1x1y1x0ul(event,dom,dir){
		switch(event){
			case "MoveFocus":
				if(ulIsBorder(dom,dir,2,4)){
					switch(dir){
						case "up":
							onSelect(event,dom.parent().parent(),dir);
							break;
						case "down":
							onSelect(event,dom.parent().parent(),dir);
							break;
						case "left":
							var index = dom.index();

							if(index == 2){
								setFocus("t4y2x1x0y1");
							}else{
								onSelect(event,dom.parent().parent(),dir);
							}
							break;
						case "right":
							onSelect(event,dom.parent().parent(),dir);
							break;
					}
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"onDemand1.html";
				break;
		}

	}
	//回看 推荐位 9
	function t4y2x1x1y1x1(event,dom,dir){
		switch(event){
			case "MoveFocus":
				switch(dir){
					case "up":
						setFocus("t4y2x1x1y0x1");
						break;
					case "down":
						onSelect(event,dom.parent(),dir);
						break;
					case "left":
						setFocus("t4y2x1x1y1x0ul",3);
						break;
					case "right":
						onSelect(event,dom.parent(),dir);
						break;
				}
				break;
			case "Back":
				window.location.href = hdLocation+"home.html";
				break;
			case "Click":
				window.location.href = hdLocation+"onDemand1.html";
				break;
		}
	}
</script>
</body>
</html>